package com.mezz.bones.framework.core.biz.chain.demo;

import com.mezz.bones.framework.core.biz.chain.BizHandler;

/**
 * @Author: zhuang
 * @Date: 2024/8/12 15:24
 * @Description: TODO
 * @Version: 1.0
 **/

public class NumberPlusTwoFilter implements BizHandler<NumberContext> {
    @Override
    public void handle(NumberContext context) {
        context.setNum(context.getNum() + 2);
        context.setStrNum(context.getNum().toString());
    }

    @Override
    public boolean skip(NumberContext context) {
        return true;
    }

    @Override
    public String getHandlerName() {
        return "数字 + 2";
    }
}
